//
//  ContainerViewViewController.m
//  横向三级选择
//
//  Created by 邵瑞 on 15/10/30.
//  Copyright © 2015年 wonders_hengxiangSelect. All rights reserved.
//

#import "ContainerViewViewController.h"

@interface ContainerViewViewController ()

@end

@implementation ContainerViewViewController

static  ContainerViewViewController * shareContainer;

+(ContainerViewViewController *)shareContainerView
{
    
    @synchronized(self)
    {
        if (!shareContainer) {
            shareContainer = [[ContainerViewViewController alloc] init];
        }
    }
    return shareContainer;
    
}

-(void)showShareType
{
    
    
    
    
    
    
    
    
    
    
    
    
    
    
//    
//        UIWindow * windowFrame = [UIApplication sharedApplication].keyWindow;
//
//    windowFrame.backgroundColor = [UIColor redColor];
//
//    //
//    self.view.frame = CGRectMake(0,  windowFrame.frame.size.height/2,  windowFrame.frame.size.width,  windowFrame.frame.size.height);
//    self.view.hidden = NO;
//    [windowFrame addSubview:self.view];
//    self.view.translatesAutoresizingMaskIntoConstraints = NO;
//    
//    NSLayoutConstraint * hightValues = [NSLayoutConstraint constraintWithItem:self.view attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:nil attribute:0 multiplier:1.00 constant:windowFrame.frame.size.height/2];
//    
//    NSLayoutConstraint *  Bottom = [NSLayoutConstraint constraintWithItem:self.view attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:windowFrame attribute:NSLayoutAttributeBottom multiplier:1.00 constant:0];
//    //    //设置父view允许子view自动布局
//    //    self.view.autoresizesSubviews=YES;
//    NSLayoutConstraint *  right0 = [NSLayoutConstraint constraintWithItem:self.view attribute:NSLayoutAttributeTrailing relatedBy:NSLayoutRelationEqual toItem:windowFrame attribute:NSLayoutAttributeTrailing multiplier:1.00 constant:0];
//    NSLayoutConstraint *  left0 = [NSLayoutConstraint constraintWithItem:self.view attribute:NSLayoutAttributeLeading relatedBy:NSLayoutRelationEqual toItem:windowFrame attribute:NSLayoutAttributeLeading multiplier:1.00 constant:0];
//    
//    
//    
//    [windowFrame addConstraint:Bottom];
//    [windowFrame addConstraint:right0];
//    [windowFrame addConstraint:left0];
//
//    [self.view addConstraint:hightValues];
//    
//
//    
//    self.view.transform = CGAffineTransformMakeScale(1/300.0f, 1/270.0f);
//    self.view.alpha = 0;
//    [UIView animateWithDuration:0.35f animations:^{
//        self.view.transform = CGAffineTransformMakeScale(1, 1);
//        self.view.alpha = 1;
//    } completion:^(BOOL finished) {
//        
//    }];
//    
    
    
    
    
    
    
    
}



- (void)viewDidLoad {
    [super viewDidLoad];
//    [self showShareType];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
